﻿<div class="content box-1pr-btm">
{{#with claim as claimView}}
{{#with claim}}
	<h2>Žala nr. {{accident.no}}-{{no}}, {{claimType.name}}, 
		{{#if insPolicyID}} {{insPolicy.insurerName}} {{else}} Neapdrausta {{/if}}
	</h2><a  {{action goToList}} class="link-back">(atgal į Žalų sąrašą)</a>
	<h4>{{date}}, {{vehicle.plate}}, {{accident.driver}}</h4>

	<div class="claims" id="claimsSteps">
		<div class="line"></div>
		{{#each steps}}
			{{log this}}
			<div {{bindAttr class=":step-box first:first alert:alert step"}} {{bindAttr data-stepno="stepNo"}}>
				<div class="step-box-header">
					<div class="num">{{#if claimView.insPolicyID}}{{stepNo}}{{else}}{{stepNo2}}{{/if}}.</div>
					<div class="name"><span>{{name}}</span></div>
				</div>
				<div class="step-box-content">
					<div class="inner">{{{content}}}</div>
				</div>
			</div>
		{{/each}}
	</div>
{{/with}}
{{/with}}
</div>
	<div id="actionsFormOfClaimReg" style="padding:0;">
		<div class="content" style="max-height:200px;overflow-y:scroll;">
			{{#if activitiesTbl}}
			<table class="zebra-striped"><thead><tr><th>&nbsp;</th><th>Data</th><th>Kas</th><th>Kam</th><th>Info</th><th>Priedai</th></tr></thead><tbody>
				{{#each activitiesTbl}}	
					<tr {{action goToOtherView this}} class="clickable {{unbound clickMe}}"><td><i class="img18-{{unbound icon}}"></i></td><td>{{date}} 
					</td><td>{{fromOnlyTbl}}</td><td>{{to}}</td><td>{{infoOnlyTbl}}</td><td>{{docs}}</td></tr>
				{{/each}}
			</tbody></table>
			{{/if}}
		</div>
		<div class="left" style="width:100%;margin-top:1.5%;"></div>
		<div id="actionsEnterOfClaimReg"></div>@*Activities view*@
	</div>




